package com.usian.controller;


import com.usian.feign.ItemFeign;
import com.usian.utils.CateGroup;
import com.usian.utils.FengZ;
import com.usian.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("frontend/itemCategory")
public class PortalController {

    @Autowired
    private ItemFeign itemFeign;



    @RequestMapping("selectItemCategoryAll")
    public Result selectItemCategoryAll(){
        FengZ fengZ =itemFeign.selectItemCategoryAll();
        if (fengZ.getData().size()>0){
            return Result.ok(fengZ);
        }
        return Result.error("查询错误");

    }
}
